package com.ruoyi.kk.division.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 全国行政区划信息对象 kk_sys_administrative_division
 * 
 * @author kk
 * @date 2025-06-09
 */
public class KkSysAdministrativeDivision extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 代码 */
    private String code;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 完整名称 */
    @Excel(name = "完整名称")
    private String fullName;

    /** 行政级别:1-省/自治区/直辖市 2-市/地区/州/盟 */
    @Excel(name = "行政级别:1-省/自治区/直辖市 2-市/地区/州/盟")
    private Long level;

    /** 上级编码 */
    @Excel(name = "上级编码")
    private String parentCode;

    /** 拼音 */
    @Excel(name = "拼音")
    private String pinyin;

    /** 首字母 */
    @Excel(name = "首字母")
    private String firstLetter;

    /** 直辖市（Y是 N否） */
    @Excel(name = "直辖市", readConverterExp = "Y=是,N=否")
    private String isDirectCity;

    /** 排序字段 */
    @Excel(name = "排序字段")
    private Long sortOrder;

    /** 状态（Y正常 N停用） */
    @Excel(name = "状态", readConverterExp = "Y=正常,N=停用")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setFullName(String fullName) 
    {
        this.fullName = fullName;
    }

    public String getFullName() 
    {
        return fullName;
    }

    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    public void setParentCode(String parentCode) 
    {
        this.parentCode = parentCode;
    }

    public String getParentCode() 
    {
        return parentCode;
    }

    public void setPinyin(String pinyin) 
    {
        this.pinyin = pinyin;
    }

    public String getPinyin() 
    {
        return pinyin;
    }

    public void setFirstLetter(String firstLetter) 
    {
        this.firstLetter = firstLetter;
    }

    public String getFirstLetter() 
    {
        return firstLetter;
    }

    public void setIsDirectCity(String isDirectCity) 
    {
        this.isDirectCity = isDirectCity;
    }

    public String getIsDirectCity() 
    {
        return isDirectCity;
    }

    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("code", getCode())
            .append("name", getName())
            .append("fullName", getFullName())
            .append("level", getLevel())
            .append("parentCode", getParentCode())
            .append("pinyin", getPinyin())
            .append("firstLetter", getFirstLetter())
            .append("isDirectCity", getIsDirectCity())
            .append("sortOrder", getSortOrder())
            .append("status", getStatus())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
